<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>smt测评，外贸电商互动平台的领跑者,提升流量,提升信誉,让电商钱途无限!</title>
        <meta name="keywords" content='smt测评，速卖通打造爆款，信誉提升, 刷信誉平台' />
        <meta name="description" content='smt测评信誉平台为为那些零信誉低销量的掌柜提供解决方案,新手快速提升信誉,发任务提升信誉,就选smt测评。' />
        <link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" type="text/css" href="/static/Content/RetrievePwdStyle/css/common.css" />
        <link rel="stylesheet" type="text/css" href="/static/Content/RetrievePwdStyle/css/account-patch.css" />


        <link rel="stylesheet" type="text/css" href="/static/Content/RetrievePwdStyle/css/relateJS.css" />
        <link rel="stylesheet" type="text/css" href="/static/Content/RetrievePwdStyle/css/myalibaba.css" />
        <script src="/static/Scripts/jquery-1.8.2.min.js"></script>

        <script src="/static/Content/layer-v1.8.5/layer-v1.8.5/layer/layer.min.js"></script>
        <script src="/static/Content/layer-v1.8.5/laydate/laydate.js"></script>
        <script>
            $(function () {

                $("#forget-password").click(function () {
                    var passwordOld = $("#passwordOld").val();
                    var password = $("#password").val();
                    var passwordConfirm = $("#passwordConfirm").val();
                    if (password.length < 6) {
                        $("#password_info_new").show();
                        return;
                    } else {
                        $("#password_info_new").hide();
                    }
                    if (password != passwordConfirm) {
                        $("#confirm_password_info_new").show();
                        return;
                    } else {
                        $("#confirm_password_info_new").hide();
                    }
                    var backurl = "{:U('User/AlertMyPwd')}";
                    $.ajax({
                        url: "{:U('User/AlertMyPwd')}",
                        type: "post",
                        dataType: "json",
                        data: {
                            pwdOld: passwordOld,
                            pwd: password
                        },
                        success: function (data) {
                            if (data.status == 1) {
                                var login_url = "{:U('Account/login')}"
                                $("#forget-password-change").html('<div class="fyp-success"><h2>修改密码成功!</h2>修改密码成功,您可以用新密码  <a href="' + login_url + '">重新登录</a> </div>');
                            } else {
                                //layer.alert(data.Msg, 3, function () {
                                //    layer.closeAll();
                                //})
                                var err = '<div class="warning-box">' + data.info + '<a href="' + backurl + '">返回</a></div>'

                                $("#forget-password-change").html(err);
                            }

                        },
                        error: function () {
                            var err = '<div class="warning-box">修改密码失败<a href="' + backurl + '">返回</a></div>'

                            $("#forget-password-change").html(err);
                        }
                    })


                });
            })

        </script>
    </head>
    <body>
        <div id="main-panel" class="main-panel">
            <!--=====================SCREEN BEGIN==============================================================-->

            <link href="/static/Content/RetrievePwdStyle/css/sorcing-signin.css" type="text/css" rel="stylesheet"></link>
            <style type="text/css">
                #forgotYourPassword {
                    width: 620px;
                    border: 1px solid #c1cee0;
                    padding-left: 20px;
                    margin: 0 auto;
                }

                #forgotYourPassword h2 {
                    font-size: 16px;
                    font-weight: bolder;
                    border-bottom: 1px solid #cccccc;
                    line-height: 50px;
                    margin-right: 20px;
                }

                .suggest-words {
                    line-height: 20px;
                    padding-top: 10px;
                    margin-right: 20px;
                }

                .suggest-words span {
                    display: block;
                    font-weight: bold;
                }

                .input-box {
                    line-height: 35px;
                }

                .input-box th {
                    text-align: right;
                    padding-right: 5px;
                    font-weight: bolder;
                }

                .input-box td {
                }

                .enterText {
                    margin-left: 5px;
                    width: 280px;
                    height: 22px;
                    border: 1px solid #9f9f9f;
                    padding-left: 3px;
                }

                .warning-words {
                    border: 1px solid #FFCBCD;
                    margin: 10px 25px 5px 5px;
                    background: url("/static/Content/RetrievePwdStyle/images/img/forget_pwd_images.gif") no-repeat 5px -191px #FEEEEF;
                    font-size: 10px;
                    line-height: 16px;
                    padding: 6px 5px 5px 26px;
                    word-wrap: break-word;
                    font-family: Verdana;
                }

                .warning-words ul {
                    margin: 0;
                    padding: 0;
                }

                .warning-words li {
                    list-style: none outside none;
                    margin-top: 10px;
                }

                .warning-words strong {
                    font: bold 10px verdana;
                }

                .warning-box {
                    background: url("/static/Content/RetrievePwdStyle/images/img/sprites_common.gif") no-repeat scroll -250px -1005px #FEEEEF;
                    line-height: 26px;
                    padding: 15px 20px 15px 65px;
                    border: 1px solid #FFCBCD;
                    margin-top: 10px !important;
                    margin-bottom: 10px;
                }

                .forgot-answer {
                    float: left;
                    padding: 10px 0 0 10px;
                    font-size: 10px;
                }

                .box-bottom {
                    background-color: #eff4fa;
                    height: 38px;
                    margin: 20px 0 0 -20px;
                    font-family: Verdana;
                    padding-right: 40px;
                }

                .fypButton {
                    background: url("/static/Content/RetrievePwdStyle/images/img/forget_pwd_images.gif") 0 -48px no-repeat;
                    cursor: pointer;
                    width: 81px;
                    height: 27px;
                    font-weight: bold !important;
                    display: inline-block;
                    float: right;
                    margin: 5px 25px 0 0;
                    border: none;
                    color: #6C2300 !important;
                }

                .fypBack {
                    background: url("/static/Content/RetrievePwdStyle/images/img/forget_pwd_images.gif") 0 -112px no-repeat;
                    cursor: pointer;
                    width: 60px;
                    height: 27px;
                    font-weight: bold !important;
                    display: inline-block;
                    float: right;
                    margin: 5px 25px 0 0;
                    border: none;
                    color: #6C2300 !important;
                }

                .fyp-btn-disabled {
                    background: url("/static/Content/RetrievePwdStyle/images/img/forget_pwd_images.gif") 0 -112px no-repeat;
                    cursor: pointer;
                    width: 60px;
                    height: 27px;
                    font-weight: bold !important;
                    display: inline-block;
                    float: right;
                    margin: 5px 25px 0 0;
                    border: none;
                    color: #999;
                }

                .fyp-success {
                    width: 760px;
                    height: auto;
                    background: url("/static/Content/RetrievePwdStyle/images/img/success_a.gif") no-repeat 10px 11px transparent;
                    background-color: #f2fcf1;
                    border: 1px solid #d2e6b3;
                    margin: 20px auto 100px auto;
                    padding: 10px 10px 10px 54px;
                    line-height: 30px;
                }

                .boxShadow {
                    background-color: #dfdfdf;
                    height: 1px;
                    overflow: hidden;
                    width: 450px;
                    margin: 0 auto 30px auto;
                }

                .error-fpwd {
                    background: url("/static/Content/RetrievePwdStyle/images/img/icon_error_bc.gif") no-repeat scroll 12px 10px #FDE8E9;
                    border: 1px solid #FAC5C8;
                    font-family: verdana;
                    font-size: 10px;
                    line-height: 16px;
                    margin-right: 30px;
                    padding: 6px 20px 5px 35px;
                    margin-bottom: 5px;
                    margin-top: 10px !important;
                }
            </style>

            <div class="title-wrap">
                <h1 class="guide"><a href="">修改密码</a></h1>
                <div id="account-title" class="account-close"><em class="g-png-16 close"></em><a href="{:U('User/index')}">Close</a></div>
            </div>

            <div class="colRmargin">
                <div id="forget-password-change">
                    <div id="forgotYourPassword">
                        <div class="inner-box">
                            <h2>设置一个新密码</h2>
                            <div class="input-box">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="input-box">
                                    <tr>
                                        <th width="40%">注册的电子邮件:</th>
                                        <td>{$Think.session.userinfo.email|substr_replace='***',0,3}</td>
                                    </tr>
                                    <tr> 
                                        <th>原始密码:</th>
                                        <td><input type="password" id="passwordOld" name="passwordOld"  value="" size="45"  class="enterText" style="width:250px"/>
                                        </td>
                                    </tr>
                                    <tr> 
                                        <th>输入新密码:</th>
                                        <td><input type="password" id="password" name="_fmu.n._0.n"  value="" size="45"  class="enterText" style="width:250px"/>
                                        </td>
                                    </tr>
                                    <tr> 
                                        <th></th>
                                        <td><div id="password_info_new" class="warning-words" style="display:none">你的密码应该长6-20个字符（包括AZ，az，0-9，没有空格）。</div>
                                        </td>
                                    </tr>
                                    <tr> 
                                        <th>重复新密码:</th>
                                        <td><input type="password" id="passwordConfirm" name="_fmu.n._0.c" value="" size="45" class="enterText" style="width:250px"/>	
                                        </td>
                                    </tr>
                                    <tr> 
                                        <th></th>
                                        <td><div id="confirm_password_info_new" class="warning-words" style="display:none">您的密码不匹配。请再试一次。</div></td>
                                    </tr>

                                </table>
                            </div>
                            <div class="box-bottom"><input id="forget-password"  class="fypButton fypSubmit" type="button" value="确定" /></div>
                        </div>
                    </div>
                    <div class="boxShadow"></div>
                </div>
            </div>




            <!--===================== SCREEN END ========================-=====================================-->
            <div style="clear: both;"></div>
        </div>
        <!--skylight-common/footer/myalibaba_global.html -start -->
        <link rel="stylesheet" href="/static/Content/RetrievePwdStyle/css/footer-sc7Cnull.css" media="screen" />
        <!--[if lte IE 8]>
    <script>document.createElement('footer');</script>
    <![endif]-->
        <footer id="footer" class="ui-footer ui-footer-ma ui-footer-wrapper">
            <hr/>
            <div class="ui-footer-seo">
                <!-- 页尾投放 tms begin -->
                <!-- 页尾投放 tms end -->
                {include file='Public/foot'/}
            </div>
        </footer>
    </body>
</html>

